package com.bydq.patrolsystem.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 写代码是不可能写代码的啦~~
 * @since 2020-05-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class PsLogs implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("userCode")
    private String userCode;

    @TableField("userName")
    private String userName;

    @TableField("operateInfo")
    private String operateInfo;

    @TableField(value = "operateDatetime",fill = FieldFill.INSERT)
    private Date operateDatetime;


    public PsLogs(String userCode, String userName, String value, Date date) {
        this.userCode = userCode;
        this.userName = userName;
        this.operateInfo = value;
        this.operateDatetime = date;
    }
}
